"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

function isIOSMobile() {
  if (typeof window !== 'undefined') {
    var _window, _window$navigator;

    var ua = ((_window = window) === null || _window === void 0 ? void 0 : (_window$navigator = _window.navigator) === null || _window$navigator === void 0 ? void 0 : _window$navigator.userAgent) || '';
    return ['iPhone', 'iPad'].some(function (item) {
      return ~ua.indexOf(item);
    });
  }

  return false;
}

var _default = isIOSMobile;
exports.default = _default;